﻿<UserControl x:Class="BadHabit.Factory.Controls.ProjectIndicator"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <UserControl.Resources>
        
        <SolidColorBrush x:Key="NotGoodValueBackgroundBrush" Color="IndianRed" />
        <SolidColorBrush x:Key="NotGoodValueBrush" Color="#EE6C0A" />
        
        <SolidColorBrush x:Key="GoodValueBackgroundBrush" Color="LightGray" />
        <SolidColorBrush x:Key="GoodValueBrush" Color="{StaticResource DarkColor}" />
        


    </UserControl.Resources>
    
    

        

    
        <Grid Margin="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="30"/>
                    <ColumnDefinition Width="40"/>                        
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Image
                    x:Name="indicatorImage"
                    Grid.Column="0"
                    VerticalAlignment="Top" HorizontalAlignment="Left" Stretch="Uniform" Width="24" Height="24"/>
                <StackPanel Grid.Column="1" x:Name="statusBorder" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top"  >
                    <TextBlock x:Name="indicatorValueTextBlock" Text="0" Style="{StaticResource ToolBarBigTextBlock}" HorizontalAlignment="Center"/>                    
                </StackPanel>
            <StackPanel Grid.Column="2" Margin="5,0,0,0">
            <TextBlock>
                <TextBlock x:Name="indicatorNameTextBlock" Text="Indicator Name"  FontWeight="Bold" HorizontalAlignment="Left" TextWrapping="Wrap" TextAlignment="Center"/>
                <TextBlock x:Name="indicatorUnitTextBlock" Foreground="Gray" FontSize="10"/>
            </TextBlock>
            
            <TextBlock x:Name="toolTipTextBlock" TextWrapping="Wrap" />

        </StackPanel>

        </Grid>
        

        


    
</UserControl>
